Optimal. Leaf size=30 \[ \frac {\log (\tan (a+b x))}{2 b}-\frac {\cot ^2(a+b x)}{4 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {4288, 2620, 14} \[ \frac {\log (\tan (a+b x))}{2 b}-\frac {\cot ^2(a+b x)}{4 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2620
Rule 4288
Rubi steps
\begin {align*} \int \csc ^2(a+b x) \csc (2 a+2 b x) \, dx &=\frac {1}{2} \int \csc ^3(a+b x) \sec (a+b x) \, dx\\ &=\frac {\operatorname {Subst}\left (\int \frac {1+x^2}{x^3} \, dx,x,\tan (a+b x)\right )}{2 b}\\ &=\frac {\operatorname {Subst}\left (\int \left (\frac {1}{x^3}+\frac {1}{x}\right ) \, dx,x,\tan (a+b x)\right )}{2 b}\\ &=-\frac {\cot ^2(a+b x)}{4 b}+\frac {\log (\tan (a+b x))}{2 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 34, normalized size = 1.13 \[ -\frac {\csc ^2(a+b x)-2 \log (\sin (a+b x))+2 \log (\cos (a+b x))}{4 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.43, size = 65, normalized size = 2.17 \[ -\frac {{\left (\cos \left (b x + a\right )^{2} - 1\right )} \log \left (\cos \left (b x + a\right )^{2}\right ) - {\left (\cos \left (b x + a\right )^{2} - 1\right )} \log \left (-\frac {1}{4} \, \cos \left (b x + a\right )^{2} + \frac {1}{4}\right ) - 1}{4 \, {\left (b \cos \left (b x + a\right )^{2} - b\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.01, size = 813, normalized size = 27.10 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.73, size = 27, normalized size = 0.90 \[ -\frac {1}{4 b \sin \left (b x +a \right )^{2}}+\frac {\ln \left (\tan \left (b x +a \right )\right )}{2 b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.37, size = 656, normalized size = 21.87 \[ \frac {4 \, \cos \left (4 \, b x + 4 \, a\right ) \cos \left (2 \, b x + 2 \, a\right ) - 8 \, \cos \left (2 \, b x + 2 \, a\right )^{2} + {\left (2 \, {\left (2 \, \cos \left (2 \, b x + 2 \, a\right ) - 1\right )} \cos \left (4 \, b x + 4 \, a\right ) - \cos \left (4 \, b x + 4 \, a\right )^{2} - 4 \, \cos \left (2 \, b x + 2 \, a\right )^{2} - \sin \left (4 \, b x + 4 \, a\right )^{2} + 4 \, \sin \left (4 \, b x + 4 \, a\right ) \sin \left (2 \, b x + 2 \, a\right ) - 4 \, \sin \left (2 \, b x + 2 \, a\right )^{2} + 4 \, \cos \left (2 \, b x + 2 \, a\right ) - 1\right )} \log \left (\cos \left (2 \, b x\right )^{2} + 2 \, \cos \left (2 \, b x\right ) \cos \left (2 \, a\right ) + \cos \left (2 \, a\right )^{2} + \sin \left (2 \, b x\right )^{2} - 2 \, \sin \left (2 \, b x\right ) \sin \left (2 \, a\right ) + \sin \left (2 \, a\right )^{2}\right ) - {\left (2 \, {\left (2 \, \cos \left (2 \, b x + 2 \, a\right ) - 1\right )} \cos \left (4 \, b x + 4 \, a\right ) - \cos \left (4 \, b x + 4 \, a\right )^{2} - 4 \, \cos \left (2 \, b x + 2 \, a\right )^{2} - \sin \left (4 \, b x + 4 \, a\right )^{2} + 4 \, \sin \left (4 \, b x + 4 \, a\right ) \sin \left (2 \, b x + 2 \, a\right ) - 4 \, \sin \left (2 \, b x + 2 \, a\right )^{2} + 4 \, \cos \left (2 \, b x + 2 \, a\right ) - 1\right )} \log \left (\cos \left (b x\right )^{2} + 2 \, \cos \left (b x\right ) \cos \relax (a) + \cos \relax (a)^{2} + \sin \left (b x\right )^{2} - 2 \, \sin \left (b x\right ) \sin \relax (a) + \sin \relax (a)^{2}\right ) - {\left (2 \, {\left (2 \, \cos \left (2 \, b x + 2 \, a\right ) - 1\right )} \cos \left (4 \, b x + 4 \, a\right ) - \cos \left (4 \, b x + 4 \, a\right )^{2} - 4 \, \cos \left (2 \, b x + 2 \, a\right )^{2} - \sin \left (4 \, b x + 4 \, a\right )^{2} + 4 \, \sin \left (4 \, b x + 4 \, a\right ) \sin \left (2 \, b x + 2 \, a\right ) - 4 \, \sin \left (2 \, b x + 2 \, a\right )^{2} + 4 \, \cos \left (2 \, b x + 2 \, a\right ) - 1\right )} \log \left (\cos \left (b x\right )^{2} - 2 \, \cos \left (b x\right ) \cos \relax (a) + \cos \relax (a)^{2} + \sin \left (b x\right )^{2} + 2 \, \sin \left (b x\right ) \sin \relax (a) + \sin \relax (a)^{2}\right ) + 4 \, \sin \left (4 \, b x + 4 \, a\right ) \sin \left (2 \, b x + 2 \, a\right ) - 8 \, \sin \left (2 \, b x + 2 \, a\right )^{2} + 4 \, \cos \left (2 \, b x + 2 \, a\right )}{4 \, {\left (b \cos \left (4 \, b x + 4 \, a\right )^{2} + 4 \, b \cos \left (2 \, b x + 2 \, a\right )^{2} + b \sin \left (4 \, b x + 4 \, a\right )^{2} - 4 \, b \sin \left (4 \, b x + 4 \, a\right ) \sin \left (2 \, b x + 2 \, a\right ) + 4 \, b \sin \left (2 \, b x + 2 \, a\right )^{2} - 2 \, {\left (2 \, b \cos \left (2 \, b x + 2 \, a\right ) - b\right )} \cos \left (4 \, b x + 4 \, a\right ) - 4 \, b \cos \left (2 \, b x + 2 \, a\right ) + b\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.14, size = 36, normalized size = 1.20 \[ -\frac {\frac {\ln \left (\cos \left (a+b\,x\right )\right )}{2}-\frac {\ln \left ({\sin \left (a+b\,x\right )}^2\right )}{4}+\frac {1}{4\,{\sin \left (a+b\,x\right )}^2}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \csc ^{2}{\left (a + b x \right )} \csc {\left (2 a + 2 b x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________